package architecture.admin.user.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import architecture.admin.user.dao.AdmUserDao;
import architecture.admin.user.entity.AdmUser;
import architecture.admin.user.service.AdmUserService;

@Service
public class AdmUserServiceImpl implements AdmUserService{
	@Resource
	private AdmUserDao admUserDao;
	
	@Override
	public boolean save(AdmUser entity) {
		// TODO Auto-generated method stub
		return admUserDao.save(entity);
	}

	@Override
	public boolean[] save(AdmUser[] entities) {
		// TODO Auto-generated method stub
		return admUserDao.save(entities);
	}

	@Override
	public List<AdmUser> findAll() {
		// TODO Auto-generated method stub
		return admUserDao.findAll();
	}

	@Override
	public AdmUser findById(Integer id) {
		// TODO Auto-generated method stub
		return admUserDao.find(id);
	}

	@Override
	public AdmUser[] findByIds(Integer[] ids) {
		// TODO Auto-generated method stub
		return admUserDao.find(ids);
	}

	@Override
	public void delete(AdmUser entity) {
		// TODO Auto-generated method stub
		admUserDao.remove(entity);
	}

	@Override
	public void delete(AdmUser[] entities) {
		// TODO Auto-generated method stub
		admUserDao.refresh(entities);
	}

	@Override
	public void deleteById(Integer id) {
		// TODO Auto-generated method stub
		admUserDao.removeById(id);
	}

	@Override
	public void deleteByIds(Integer ids) {
		// TODO Auto-generated method stub
		admUserDao.removeByIds(ids);
	}

	@Override
	public void flush() {
		// TODO Auto-generated method stub
		admUserDao.flush();
	}

	
	
}
